package com.zara.store.web.struts;

import java.math.BigDecimal;

import org.apache.struts.action.ActionForm;

import com.zara.store.common.ProductVO;

public final class ProductForm extends ActionForm {

	private static final long serialVersionUID = 1L;
	
	public void fromVO(ProductVO productVO) {
		setName(productVO.getName());
	}

	private int id;
	private String productMode;
	private String type;
	private String barcode;
	private String name;
	private String description;
	private String section;
	private String line;
	private String color;
	private String origin;
	private BigDecimal unitPrice;
	private BigDecimal salePrice;
	private BigDecimal stock;
	private BigDecimal orderStock;

	public String getBarcode() {
		return barcode;
	}

	public void setBarcode(String barcode) {
		this.barcode = barcode;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getLine() {
		return line;
	}

	public void setLine(String line) {
		this.line = line;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BigDecimal getOrderStock() {
		return orderStock;
	}

	public void setOrderStock(BigDecimal orderStock) {
		this.orderStock = orderStock;
	}

	public String getOrigin() {
		return origin;
	}

	public void setOrigin(String origin) {
		this.origin = origin;
	}

	public BigDecimal getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(BigDecimal salePrice) {
		this.salePrice = salePrice;
	}

	public String getSection() {
		return section;
	}

	public void setSection(String section) {
		this.section = section;
	}

	public BigDecimal getStock() {
		return stock;
	}

	public void setStock(BigDecimal stock) {
		this.stock = stock;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public BigDecimal getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(BigDecimal unitPrice) {
		this.unitPrice = unitPrice;
	}

	public String getProductMode() {
		return productMode;
	}

	public void setProductMode(String productMode) {
		this.productMode = productMode;
	}

}
